package designPattern.action11.Visitor.Q1.concrete.entry;

import designPattern.action11.Visitor.Q1.sketch.Entry;
import designPattern.action11.Visitor.Q1.sketch.Visitor;

public class FileEntry extends Entry {
    private String name;
    private int size;

    public FileEntry(String name, int size) {
        this.name = name;
        this.size = size;
    }

    public String getName() {
        return name;
    }

    public int getSize() {
        return size;
    }

    public void accept(Visitor v) {
        v.visit(this);
    }
}
